package com.online.onlineshop.services;

import com.online.onlineshop.entity.Orders;
import com.online.onlineshop.vo.OrderVO;

import java.util.List;

public interface ForOrderService {
    /**
     * 生成订单方法
     * @param aid 地址id
     * @param uid 用户id
     * @param userName 用户名
     * @param cid 勾选商品cid
     * @return
     */
    Orders product(Integer aid, Integer uid, String userName, Integer[] cid);

    /**
     * 根据当前用户uid查询订单信息
     * @param uid
     * @return
     */
    List<OrderVO> selectOrderVO(Integer uid);

    Orders selectById(int oid);

}
